package com.sg.dto.biz.bff.common;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

/**
 * @desc BffFrameworkPrivacyDto
 * @使用场景
 */
@Data
public class BffFrameworkPrivacyDto implements Serializable {

    /**
     * 权限ID:
     */
    @ApiModelProperty("权限ID")
    private String privacyId;

    /**
     * 权限标识:
     */
    @ApiModelProperty("权限标识")
    private String privacyCode;

    /**
     * 权限名称:
     */
    @ApiModelProperty("权限名称")
    private String privacyName;

    /**
     * 分配策略:
     */
    @ApiModelProperty("分配策略")
    private String strategyType;
    /**
     * 是否接口权限:
     */
    @ApiModelProperty("是否接口权限")
    private String isportPrivacy;
    /**
     * 权限路由:
     */
    @ApiModelProperty("权限路由")
    private String privacyRoute;
    /**
     * 是否数据权限:
     */
    @ApiModelProperty("是否数据权限")
    private String isDataPrivacy;
    /**
     * 数据父模型编码:
     */
    @ApiModelProperty("数据父模型编码")
    private String dataModel;
    /**
     * 权限类别:
     */
    @ApiModelProperty("权限类别")
    private String privacyCategory;
    /**
     * 权限业务用途:
     */
    @ApiModelProperty("权限业务用途")
    private String businessPurposes;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 个人账号ID:
     */
    @ApiModelProperty("个人账号ID")
    private String userId;
    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;
    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;
    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffFrameworkPrivacyDto that = (BffFrameworkPrivacyDto) o;
        return privacyId == that.privacyId && privacyCode == that.privacyCode && privacyName == that.privacyName && strategyType == that.strategyType && isportPrivacy == that.isportPrivacy && privacyRoute == that.privacyRoute && isDataPrivacy == that.isDataPrivacy && dataModel == that.dataModel && privacyCategory == that.privacyCategory && businessPurposes == that.businessPurposes && subjectLifeCycle == that.subjectLifeCycle && operationInductionId == that.operationInductionId && operateTime == that.operateTime && userId == that.userId && userFace == that.userFace && idCardName == that.idCardName && nickName == that.nickName;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), privacyId, privacyCode, privacyName, strategyType, isportPrivacy, privacyRoute, isDataPrivacy, dataModel, privacyCategory, businessPurposes, subjectLifeCycle, operationInductionId, operateTime, userId, userFace, idCardName, nickName);
    }
    // Generated by moon;
}
